package com.face.facerecognition.controller;


import com.face.facerecognition.entity.AuthTokenStatus;
import com.face.facerecognition.service.AuthTokenStatusService;
import com.face.facerecognition.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.xml.transform.Result;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rui
 * @since 2025-01-10
 */
@RestController
@RequestMapping("/token")
public class AuthTokenStatusController {

    @Autowired
    private AuthTokenStatusService authTokenStatusService;
    //查询数据
    @RequestMapping("/authTokenStatus")
    public ResultVo authTokenStatus(String token){
        return ResultVo.success(authTokenStatusService.isAuth(token));
    }
}

